package com.bdqn.vueboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName matters
 */
@TableName(value ="matters")
@Data
public class Matters implements Serializable {
    /**
     * 维修事项id
     */
    @TableId
    private Integer mattersId;

    /**
     * 维修事项名称
     */
    private String mattersName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Matters other = (Matters) that;
        return (this.getMattersId() == null ? other.getMattersId() == null : this.getMattersId().equals(other.getMattersId()))
            && (this.getMattersName() == null ? other.getMattersName() == null : this.getMattersName().equals(other.getMattersName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMattersId() == null) ? 0 : getMattersId().hashCode());
        result = prime * result + ((getMattersName() == null) ? 0 : getMattersName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mattersId=").append(mattersId);
        sb.append(", mattersName=").append(mattersName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}